﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PWS
{
    /// <summary>  
    /// 职工信息表
    /// </summary>
    public class Employee
    {
        [Required]
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }
        [Required]
        /// <summary>
        /// enum:0：领导1：党务人员2：雇员
        /// </summary>
        public int Postion { get; set; }
        [Required]
        /// <summary>
        /// 薪资
        /// </summary>
        public float Salary { get; set; }
        [Required]
        /// <summary>
        /// 参加工作日期
        /// </summary>
        public DateTime WorkingDate { get; set; }
        [Required]
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime AddTime { get; set; }
        [Required]
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(50)]
        public string? Name { get; set; }
        [Required]
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        [Required]
        /// <summary>
        /// 电话
        /// </summary>
        public int Phone { get; set; }
        [Required]
        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }
        [Required]
        /// <summary>
        ///上班交通工具
        /// </summary>
        public string? Traffic { get; set; }
    }
}
